<!doctype html>
<!--[if IE 9]><html class="lt-ie10" lang="en" > <![endif]-->
<html class="no-js" lang="en" dir="ltr">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
  <title>Tabs tabs target</title>
  <link href="../assets/css/foundation.css" rel="stylesheet" />
</head>
<body>
<div class="grid-x grid-padding-x">
  <div class="cell">
    <ul class="tabs" data-tabs id="example-tabs">
      <li class="tabs-title is-active">
        <a href="https://foundation.zurb.com" data-tabs-target="panel1" aria-selected="true">Tab 1</a>
      </li>
      <li class="tabs-title">
        <a href="https://foundation.zurb.com/sites/docs/tabs.html" data-tabs-target="panel2" aria-selected="true">Tab 2</a>
      </li>
      <li class="tabs-title">
        <a href="#panel4" data-tabs-target="panel3">Tab 3</a>
      </li>
      <li class="tabs-title hide">
        <a href="#panel4">Tab 4 (Hidden)</a>
      </li>
    </ul>
    <div class="tabs-content" data-tabs-content="example-tabs">
      <div class="tabs-panel is-active" id="panel1">
        <p>This panel's ID is <code>panel1</code>.</p>
        <p>Its related tab link has a <code>href</code> of <code>https://foundation.zurb.com</code> and a <code>data-tabs-target</code> of <code>panel1</code>.</p>
        <p>When JavaScript is <strong>enabled</strong>, clicking Tab 1 should show this panel.</p>
        <p>When JavaScript is <strong>disabled</strong>, clicking Tab 1 should navigate to <code>https://foundation.zurb.com</code>.</p>
      </div>
      <div class="tabs-panel" id="panel2">
        <p>This panel's ID is <code>panel2</code>.</p>
        <p>Its related tab link has a <code>href</code> of <code>https://foundation.zurb.com/sites/docs/tabs.html</code> and a <code>data-tabs-target</code> of <code>panel2</code>.</p>
        <p>When JavaScript is <strong>enabled</strong>, clicking Tab 2 should show this panel.</p>
        <p>When JavaScript is <strong>disabled</strong>, clicking Tab 2 should navigate to <code>https://foundation.zurb.com/sites/docs/tabs.html</code>.</p>
      </div>
      <div class="tabs-panel" id="panel3">
        <p>This panel's ID is <code>panel3</code>.</p>
        <p>Its related tab link has a <code>href</code> of <code>#panel4</code> and a <code>data-tabs-target</code> of <code>panel3</code>.</p>
        <p>When JavaScript is <strong>enabled</strong>, clicking Tab 3 should show panel 3.</p>
        <p>When JavaScript is <strong>disabled</strong>, clicking Tab 3 should show panel 4 via the ID anchor link.</p>
      </div>
      <div class="tabs-panel" id="panel4">
        <p>This panel's ID is <code>panel4</code>.</p>
        <p>Its related tab link has a <code>href</code> of <code>#panel4</code> and no <code>data-tabs-target</code> attribute. It should also be hidden from view.</p>
        <p style="color: red;">If JavaScript is <strong>enabled</strong> and you can see this panel, then the test has errored.</p>
      </div>
    </div>
  </div>
</div>

<script src="../assets/js/vendor.js"></script>
<script src="../assets/js/foundation.js"></script>
<script>
  $(document).foundation();
</script>
</body>
</html>
